// ignore_for_file: file_names
import 'package:flutter/material.dart';

class HomePage extends StatelessWidget {
  HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("测试"),
      ),
      body: Wrap(
        spacing: 2, //主轴上子控件的间距
        runSpacing: 5, //交叉轴上子控件之间的间距
        children: [
          TextButton(
            onPressed: () {},
            child: const Text("拍照"),
          ),
          TextButton(
            onPressed: () => Navigator.pushNamed(context, "/itemChoice"),
            child: const Text("多矩形图选择"),
          ),
          TextButton(
            onPressed: () => Navigator.pushNamed(context, "/image_crop"),
            child: const Text("图样裁剪"),
          ),
          TextButton(
            onPressed: () => Navigator.pushNamed(context, "/zoom_view"),
            child: const Text("图样缩放"),
          ),
          TextButton(
            onPressed: () => Navigator.pushNamed(context, "/prospect"),
            child: const Text("多矩形图选择渲染"),
          ),
          TextButton(
            onPressed: () => Navigator.pushNamed(context, "/any_rangle_crop"),
            child: const Text("任意角度裁剪"),
          ),
        ],
      ),
    );
  }
}
